#!@PYTHON@


import os
import sys
import signal

VERSION = '@VERSION@'
pkgdatadir = '@pkgdatadir@'
localedir = '@localedir@'

sys.path.insert(1, pkgdatadir)
signal.signal(signal.SIGINT, signal.SIG_DFL)

if __name__ == '__main__':
    import gi

    gi.require_version('Gtk', '@gtkversion@')

    from gi.repository import Gio
    resource = Gio.Resource.load(os.path.join(pkgdatadir, 'themechanger.gresource'))
    resource._register()

    from themechanger import main
    sys.exit(main.main(VERSION))
